<template>
  <view class="rank-item">
    <view class="rank-item-title">{{ title }}</view>
    <view v-for="(item, index) in list" :key="index">
      {{ item.teacherName }}
    </view>
  </view>
</template>

<script lang="ts" setup>
defineProps<{
  title: string;
  list: { teacherName: string; count: number }[];
}>();
</script>

<style lang="scss">
.rank-item {
  display: inline-flex;
  flex-direction: column;
  margin-right: 24rpx;
  width: 290rpx;
  height: 378rpx;
  background: #fff5e1;
  border-radius: 8rpx;
  border: 2rpx solid rgba(254, 170, 12, 0.27);
}
</style>
